<!DOCTYPE html>
<html lang="zh">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="keywords" content="">
	<meta name="description" content="">
	<title>RUI - Freewheel</title>
	<link rel="stylesheet" href="css/global.css"/> 
    <link rel="stylesheet" href="css/component.css"/> 
	<script type="text/javascript" src="../build/moca.js?c=combo&amp;v=201101019"></script>
</head>
 
<body>
<div id="doc">
	<div id="hd"><h1>Moca</h1></div>
	<div id="bd">
		<div class="text-division">
			<span class="first"><a href="">render a Box</a></span>
			<div id="mod4-modify">
				RPM(Revenue & Payments Management), MRM(Monetization Rights Management)
				
			</div>
		</div>
	</div>
	<div id="ft"></div>
</div>
<script type="text/javascript">
	//配置依赖关系
	Moca.addModule({
		'mod1':{
			'path': '/moca/example/js/mod1.js',
			'require': ['mod2']
		},
		'mod2':{
			'path': '/moca/example/js/mod2.js',
			'require': ['mod3','mod4']
		},
		'mod3':{
			'path': '/moca/example/js/mod3.js',
			'require': ['jquery']
		},
		'mod4':{
			'path': '/moca/example/js/mod4.js',
			'require': ['mod4-skin']
		},
		'mod4-skin':{
			'path': '/moca/example/css/mod4.css',
			'type': 'css'
		}
	});

	Moca.ready(function(M){
		$('#mod4-modify').text('Loaded!!!!!!');

	},{require:['mod1']});
		
</script>

</body>
</html>
